DEFINES=`libnet-config --defines`
LIBS = `libnet-config --libs` -lpcap -lboost_thread -lresolv
OBJ = PacketListener.o PacketWriter.o DNSResponder.o DNSListener.o ARPListener.o ARPResponder.o
CC = g++

all: arpman dnsman
	@echo "arp compiled"
arpman: $(OBJ)
	g++ $(DEFINES) -o arpman arpman.cpp $(OBJ) $(LIBS)
dnsman: $(OBJ)
	g++ $(DEFINES) -o dnsman dnsman.cpp $(OBJ) $(LIBS)
clean:
	rm -f *.o arpman dnsman
